import { Component, Vue, PropSync } from "@some21/vue-class-decorator";

@Component
export default class DialogMixins extends Vue {
  @PropSync("visible", { default: false, type: Boolean })
  syncVisible: boolean;

  loading = true;

  doOpen() {
    this.loading = true;
    this.loading = false;
  }

  doCancel() {
    this.syncVisible = false;
  }
}
